<html>
 <head>
  <link href="./leetcode-problem.css" rel="stylesheet" type="text/css">
 </head>
 <body>
  <div class="question_difficulty">
   难度：Easy
  </div>
  <div>
   <h1 class="question_title">
    866. Rectangle Overlap
   </h1>
   <p>
    A rectangle is&nbsp;represented as a&nbsp;list
    <code>
     [x1, y1, x2, y2]
    </code>
    , where&nbsp;
    <code>
     (x1, y1)
    </code>
    &nbsp;are the coordinates of its bottom-left corner, and
    <code>
     (x2,&nbsp;y2)
    </code>
    &nbsp;are the coordinates of its top-right corner.
   </p>
   <p>
    Two rectangles overlap if the area of their intersection is positive.&nbsp; To be clear, two rectangles that only touch at the corner or edges do not overlap.
   </p>
   <p>
    Given two (axis-aligned) rectangles, return whether&nbsp;they overlap.
   </p>
   <p>
    <strong>
     Example 1:
    </strong>
   </p>
   <pre>
<strong>Input: </strong>rec1 = [0,0,2,2], rec2 = [1,1,3,3]
<strong>Output: </strong>true
</pre>
   <p>
    <strong>
     Example 2:
    </strong>
   </p>
   <pre>
<strong>Input: </strong>rec1 = [0,0,1,1], rec2 = [1,0,2,1]
<strong>Output: </strong>false
</pre>
   <p>
    <strong>
     Notes:
    </strong>
   </p>
   <ol>
    <li>
     Both rectangles
     <code>
      rec1
     </code>
     and
     <code>
      rec2
     </code>
     are lists of 4 integers.
    </li>
    <li>
     All coordinates in rectangles will be between&nbsp;
     <code>
      -10^9
     </code>
     and
     <code>
      10^9
     </code>
     .
    </li>
   </ol>
  </div>
  <div>
   <h1 class="question_title">
    866. 矩形重叠
   </h1>
   <p>
    矩形以列表
    <code>
     [x1, y1, x2, y2]
    </code>
    的形式表示，其中
    <code>
     (x1, y1)
    </code>
    为左下角的坐标，
    <code>
     (x2, y2)
    </code>
    是右上角的坐标。
   </p>
   <p>
    如果相交的面积为正，则称两矩形重叠。需要明确的是，只在角或边接触的两个矩形不构成重叠。
   </p>
   <p>
    给出两个矩形，判断它们是否重叠并返回结果。
   </p>
   <p>
    <strong>
     示例 1：
    </strong>
   </p>
   <pre><strong>输入：</strong>rec1 = [0,0,2,2], rec2 = [1,1,3,3]
<strong>输出：</strong>true
</pre>
   <p>
    <strong>
     示例 2：
    </strong>
   </p>
   <pre><strong>输入：</strong>rec1 = [0,0,1,1], rec2 = [1,0,2,1]
<strong>输出：</strong>false
</pre>
   <p>
    <strong>
     说明：
    </strong>
   </p>
   <ol>
    <li>
     两个矩形
     <code>
      rec1
     </code>
     和
     <code>
      rec2
     </code>
     都以含有四个整数的列表的形式给出。
    </li>
    <li>
     矩形中的所有坐标都处于
     <code>
      -10^9
     </code>
     和
     <code>
      10^9
     </code>
     之间。
    </li>
   </ol>
  </div>
 </body>
</html>